//
//  AnnotationView.m
//  HeSiad
//
//  Created by MWJ on 15/5/3.
//  Copyright (c) 2015年 MWJ. All rights reserved.
//

#import "AnnotationView.h"

@implementation AnnotationView
- (id)initWithAnnotation:(id<MKAnnotation>)annotation reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithAnnotation:annotation reuseIdentifier:reuseIdentifier];
    if (self) {
        self.backgroundColor = [UIColor clearColor];
        //大头针的图片
        UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 20, 60)];
        [imageView setImage:[UIImage imageNamed:@"DTZ.png"]];
        [self addSubview:imageView];
    }
    
    return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
